package com.jacen.fzxs.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.jacen.fzxs.entity.UserEntity;
import com.jacen.fzxs.web.Pager;

/**
 * 用户Service接口
 * @author Jacen
 *
 */
public interface IUserService extends IBaseService<UserEntity> {
	
	public List<UserEntity> getPage(Pager pager ,Map<String, String> params) throws SQLException ;

	public int getCount(Map<String, ? extends Object> paramMap) throws SQLException;

	public List<UserEntity> getList(Map<String, String> params);

	public UserEntity login(String username, String password);

	/**
	 * 获取角色的所有用户
	 * @param roleId
	 * @return
	 */
	public List<UserEntity> getListByRoleId(String roleId) throws Exception;

	

}
